﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using HZ.MBSM.Model;
using HZ.MBSM.DBUtility;

public partial class Bidder_AlertProduct : System.Web.UI.Page
{
    Int64 projectid; 
    protected void Page_Load(object sender, EventArgs e)
    {
        Int64 Account_TBR;
        System.Collections.Generic.List<HZ.MBSM.DAL.AccountType> _AccountType = new System.Collections.Generic.List<HZ.MBSM.DAL.AccountType>();
        _AccountType.Add(HZ.MBSM.DAL.AccountType.enumCompany);
   

        if (HZ.MBSM.BLL.Login.CheckAssert(_AccountType))
        {
            HZ.MBSM.Model.Account _Account = (HZ.MBSM.Model.Account)Session["Account"];
            if (_Account != null)
            {
                Account_TBR = SysFun.ToInt(_Account.AccountId);
                string sql;
                projectid = SysFun.ToInt(SysFun.IsSQL(Request.QueryString["projectid"]));
                Db db = new Db();
                System.Data.IDataReader dr;
                sql = "select ProductName,Medicinemodel,Outlookc,goodsname,MEMO1,goodsid,QualityLevels,Factor,CompanyName,MEMO9 from ProjectBid_view where ProjectId='" + projectid + "' and Accountid='" + Account_TBR + "' and CheckStatus='2'";
                dr = db.DataReader(sql);
                GridView1.DataSource = dr;
                GridView1.DataBind();
                db.Close();
                dr.Dispose();
                dr.Close();
            }
        }
    }
}
